package com.xcity.pomelo.response;

import com.xcity.db.entity.Player;
import com.xcity.game.battle.pve.PVEManager;
import com.xcity.game.battle.pve.PVEStage;
import com.xcity.game.buycount.BuyCount;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class PVEFullResponse extends Response {

	private int id;
	private int leftTimes;
//	private int sweepCount;
	private int resetCount;
//	private int vipResetCount;
	private int resetCost;
	public PVEFullResponse(int serial, Player player, PVEStage stage) {
		super(serial);
		this.id = stage.getTemplate().getId();
		this.leftTimes = stage.getLeftTimes(player);
		if (stage.getTemplate().getType() == PVEManager.STAGE_TYPE_HERO) {
			this.resetCount = stage.getTodayResetCount(player, (byte) 1);
			this.resetCost = BuyCount.PVE_HERO_RESET.getCostStone(player, this.resetCount);
		} else {
			this.resetCount = stage.getTodayResetCount(player, (byte) 0);
			this.resetCost = BuyCount.PVE_NORMAL_RESET.getCostStone(player, this.resetCount);
		}
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getLeftTimes() {
		return leftTimes;
	}
	public void setLeftTimes(int leftTimes) {
		this.leftTimes = leftTimes;
	}
//	public int getSweepCount() {
//		return sweepCount;
//	}
//	public void setSweepCount(int sweepCount) {
//		this.sweepCount = sweepCount;
//	}
	public int getResetCount() {
		return resetCount;
	}
	public void setResetCount(int resetCount) {
		this.resetCount = resetCount;
	}
//	public int getVipResetCount() {
//		return vipResetCount;
//	}
//	public void setVipResetCount(int vipResetCount) {
//		this.vipResetCount = vipResetCount;
//	}
	public int getResetCost() {
		return resetCost;
	}
	public void setResetCost(int resetCost) {
		this.resetCost = resetCost;
	}
}
